package com.example.spring.others;

import org.springframework.stereotype.Component;

/**
 * 测试bean
 */
@Component
public class Cat {

    private String name = "hello kitty";

    private int age = 3;

    public void say( ) {
        System.out.println("name:" + name);
        System.out.println("age:" + age);
    }

    public String getName( ) {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge( ) {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
